package com.sxt.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sxt.common.DataGridView;
import com.sxt.mapper.BillTypeMapper;
import com.sxt.service.BillTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;

@Service
public class BillTypeServiceImpl extends ServiceImpl<BillTypeMapper, BillType> implements BillTypeService{

    @Autowired
    private BillTypeMapper billTypeMapper;

    @Override
    public DataGridView queryAllBillType() {
        return new DataGridView(billTypeMapper.selectList(null));
    }


    @Override
    public BillType getById(Serializable id) {
        return super.getById(id);
    }
}
